using System;
using System.Collections.Generic;

namespace Voodoo.Distribution
{
	[Serializable]
	public class LocalizationSet : IDisposable
	{
		private bool _disposed;

		public Dictionary<string, LanguageRegistry> languages = new Dictionary<string, LanguageRegistry>();

		public void Dispose()
		{
			if (_disposed)
			{
				return;
			}
			_disposed = true;
			foreach (LanguageRegistry value in languages.Values)
			{
				value.Dispose();
			}
			languages.Clear();
			languages = null;
		}
	}
}
